package com.itheima;

public class Demo {
    public static void main(String[] args) {
        new B().test();
    }
}

class A{

    public A get() {
        return null;
    }
}

class B extends A{
    public void test() {
        System.out.println("getClass().getName() = " + getClass().getName());
        System.out.println(this.getClass().getSuperclass());
        System.out.println("super.getClass().getName() = " + super.getClass().getName());
    }

    @Override
    public B get() {
        return null;
    }
}
